package com.mindainfo.groundwave;

import org.apache.commons.io.IOUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.io.Resource;
import org.springframework.core.io.support.PathMatchingResourcePatternResolver;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.io.IOException;


/**
 * Created by MD-01 on 2017/5/15.
 */
@SpringBootApplication
@EnableTransactionManagement
public class Application {

    public static void main(String[] args){
        SpringApplication.run(Application.class,args);

        Resource resource = new PathMatchingResourcePatternResolver().getResource("classpath:banner.txt");
        try {
            String s = IOUtils.toString(resource.getInputStream());
            System.out.println(s);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
